﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using Bll;
using Common;
using FilterModel;
using IBll;
using MainService.Controllers.Extend;
using ResponseModel;

namespace MainService.Controllers
{
    /// <summary>
    /// 下载控制器
    /// </summary>
    [LoginAuthorizationFilter]
    public class DownloadController:BaseApiController
    {
        public IFileBll FileBll { get; set; }

        /// <summary>
        /// 通用
        /// </summary>
        /// <param name="filePath"></param>
        /// <returns></returns>
        [HttpPost]
        public void Common(string filePath)
        {
            FileBll.DownloadFile(filePath);
        }
    }
}